<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>商品</title>
	<hdjs/>
	<bootstrap/>
	<css file="__PUBLIC__/Css/public.css"/>
	<js file='__PUBLIC__/Js/public.js' />
</head>
<body>
	
	<form action="" class ='hd-form' name='form' method="post">
	<div class="wrap">
	<div class="title-header">{$shopname}</div>
	<div class="menu_list">
		<ul>
			<li><a href="javascript:;"  class="action"> 商品列表 </a></li>
			<li><a href="{|U:'Goods/add',array('shopid'=>$_GET['shopid'])}"> 添加商品</a></li>
			<li><a href="{|U:'shop/index'}">商铺列表 </a></li>
		
		</ul>
	</div>
	<table class='table table-striped table-bordered '>
	<tr>
		<td  width="8%"  align="center"><input type="checkbox"  class='checkall' /></td>
		<td width="10%">地区</td>
		<td>商品标题</td>
		<td>商品副标题</td>
		<td width="8%">商品价格</td>
		<td width="8%">原价</td>
		<td width="10%">分类</td>
		<td width="10%">操作</td>
	</tr>
	<if value='$goods'>
	<foreach from='$goods' value='$v'>
	<tr>
		<td align="center"><input type="checkbox" name='cid[{$v.gid}]' value="{$v.gid}" /></td>
		<td>{$v.lname}</td>
		<td>{$v.main_title}</td>
		<td>{$v.sub_title}</td>
		<td>{$v.price}</td>
		<td>{$v.old_price}</td>
		<td>{$v.cname}</td>
		<td>
			<a href="{|U:'Goods/edit',array('gid'=>$v['gid'])}">编辑</a> 
			<a href="javascript:;" onclick="var url='{|U:'Goods/del',array('gid'=>$v["gid"])}'; hd_confirm(' 确定删除吗？ ',function(){location.href=url})">删除</a>
		</td>
	</tr>
	</foreach>
	<tr>
		<td colspan="8" class='page'>{$page}</td>
	</tr>
	<else />
	<tr>
		<td colspan="8">没有找到符合的记录</td>
	</tr>
	</if>

	</table>
	</div>
	<div class='position-bottom'>
		<input type="button" class='hd-cancel all' value='全选' />
		<input type="button" class='hd-cancel cancel' value='反选'/>
		<input type="button" class='hd-cancel sort' value='排序'/>
	</div>
	</form>
</body>
</html>